package com.herch.web.controller.system;

import com.herch.common.annotation.Log;
import com.herch.common.core.controller.BaseController;
import com.herch.common.core.domain.AjaxResult;
import com.herch.common.core.page.TableDataInfo;
import com.herch.common.enums.BusinessType;
import com.herch.common.utils.poi.ExcelUtil;
import com.herch.system.domain.HqParamSet;
import com.herch.system.service.IHqParamSetService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * 【请填写功能名称】Controller
 * 
 * @author ruoyi
 * @date 2023-12-18
 */
@RestController
@RequestMapping("/argument/threshold")
public class HqParamSetController extends BaseController
{
    @Autowired
    private IHqParamSetService hqParamSetService;

    /**
     * 查询【请填写功能名称】列表
     */
    @GetMapping("/list")
    public AjaxResult list()
    {
        List<HqParamSet> list = hqParamSetService.selectHqParamSetList();
        return success(list);
    }


    /**
     * 修改【请填写功能名称】
     */
    @Log(title = "【请填写功能名称】", businessType = BusinessType.UPDATE)
    @GetMapping("/{data}")
    public AjaxResult edit(@PathVariable("data") String data, HqParamSet hqParamSet)
    {
        return toAjax(hqParamSetService.updateHqParamSet(data,hqParamSet));
    }

}
